const http = require('http')
const querystring = require('querystring')

http.createServer((req, res)=>{
    console.log(req.url)
    // let result = []
    // req.on('data', (buffer)=>{
    //     console.log(buffer)
    //     result.push(buffer)
    // })
    // req.on('end',()=>{
    //     console.log(result)
    //     let data = Buffer.concat(result).toString()
    //     console.log(querystring.parse(data))   
    // })
}).listen(8080)